package cn.wolfcode.cms.service;

import cn.wolfcode.cms.domain.Product;
import cn.wolfcode.cms.query.ProductQueryObject;
import cn.wolfcode.cms.util.PageResult;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

//员工服务层
public interface IProductService {
    void save(Product entity);

    void update(Product entity);

    void delete(Long id);

    Product get(Long id);

    List<Product> list();

    PageResult query(ProductQueryObject qo);

    Object getTotalNumber();


    Object totalAmount();

    Object getProductByPsName(String name);

    Object getIntegral();

    void export(HttpServletResponse response);

    //商品的一级分类
    Object getFirstLevel();

}
